/****** Object:  Stored Procedure [dbo].spKhachHangGet Script Date: 6/11/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spKhachHangGet]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spKhachHangGet]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		11/06/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spKhachHangGet]
(
	@MaKH nvarchar(6)
)
WITH ENCRYPTION
AS

SET NOCOUNT ON

SELECT 
	[MaKH],	
	[TenKH],	
	[DiaChi],	
	[TinhThanh],	
	[QuanHuyen],	
	[SoDT],	
	[SoFax],	
	[MaSoThue],	
	[Email],	
	[Website],	
	[GhiChu]
FROM 
	[tbl_KhachHang]
WHERE
	[MaKH] = @MaKH
GO

--GRANT EXECUTE ON [dbo].[spKhachHangGet] TO [sa]
--GO
